/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bill.model.vo;

import java.math.BigDecimal;

/**
 *
 * @author Administrator
 */
public class CompUnit {

    private String cComunitCode;

    private String cComUnitName;  

    private BigDecimal iChangRate;

    private CompGroup compGroup = new CompGroup();


    public CompUnit(){}

    public CompUnit(String cComunitCode,String cComUnitName,String cGroupCode,BigDecimal iChangeRate){
        this.cComunitCode = cComunitCode;
        this.cComUnitName = cComUnitName;
        compGroup.setcGroupCode(cGroupCode);
        compGroup.addUnit(this);
        this.iChangRate = iChangeRate;
    }

    /**
     * @return the cComunitCode
     */
    public String getcComunitCode() {
        return cComunitCode;
    }

    /**
     * @param cComunitCode the cComunitCode to set
     */
    public void setcComunitCode(String cComunitCode) {
        this.cComunitCode = cComunitCode;
    }

    /**
     * @return the cComUnitName
     */
    public String getcComUnitName() {
        return cComUnitName;
    }

    /**
     * @param cComUnitName the cComUnitName to set
     */
    public void setcComUnitName(String cComUnitName) {
        this.cComUnitName = cComUnitName;
    }

    /**
     * @return the iChangRate
     */
    public BigDecimal getiChangRate() {
        return iChangRate;
    }

    /**
     * @param iChangRate the iChangRate to set
     */
    public void setiChangRate(BigDecimal iChangRate) {
        this.iChangRate = iChangRate;
    }


    public CompGroup getCompGroup(){
        return compGroup;
    }

    public void setCompGroup(CompGroup compGroup){
        this.compGroup = compGroup;
    }
}
